package com.codeZ.FactoryPattern.abstractFactory.factory.impl;

import com.codeZ.FactoryPattern.abstractFactory.factory.AppliancesFactory;
import com.codeZ.FactoryPattern.abstractFactory.product.AbstractFreezer;
import com.codeZ.FactoryPattern.abstractFactory.product.AbstractTV;
import com.codeZ.FactoryPattern.abstractFactory.product.impl.HiSenseFreezerImpl;
import com.codeZ.FactoryPattern.abstractFactory.product.impl.HiSenseTVImpl;

/**
 * 海信工厂
 * @author codeZhang
 * @Date 2024/8/1 17:59
 */
public class HiSenseFactory implements AppliancesFactory {
    @Override
    public AbstractTV createTV() {
        return new HiSenseTVImpl();
    }

    @Override
    public AbstractFreezer createFreezer() {
        return new HiSenseFreezerImpl();
    }
}
